package demo;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2022-10-11
 * Time: 10:23
 */
//判断是否为回文数
public class TestDemo {
    public static boolean isPalindrome(String s){
        int low=0;
        int high=s.length()-1;
        while(low<high){
            if(s.charAt(low)!=s.charAt(high))
                return false;
            low++;
            high--;
        }
        return true;
    }




    public static void main(String[] args) {
        Scanner  scanner =new Scanner(System.in);
        String s=scanner.nextLine();
        if(isPalindrome(s))
            System.out.println("是回文");
        else{
            System.out.println("不是回文");
        }
    }
}
